<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>事件循环</title>
</head>
<body>
<script>
    for(let i=0;i<3;i++){
        setTimeout(function () {
            console.log(i)
        },0)
    }
</script>
</body>
</html>
